package Log_in_test;

// import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class TrueLoggedInpage {
       public WebDriver driver;     
        
        public TrueLoggedInpage(WebDriver driver)
        {
                 this.driver = driver;
           
               
                 if (!driver.getPageSource().contains("Change Password")) {
                     throw new IllegalStateException("Homepage not logged in.");
                 }
         }
      public void getTruelLoggedInpage(){
       System.out.println("succeed!!!!");
         
        }
}

                
            
        
     
        


